﻿using System;
using Guru.Data;
using Telerik.Web.UI;
using System.Data;

public partial class HK_RoomType : HSMPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.uxDiagrams.RoomList = this.GetRooms();
            this.uxDiagrams.DataBind();
        }
    }

    protected void uxReload_Click(object sender, EventArgs e)
    {
        this.uxDiagrams.RoomList = this.GetRooms();
        this.uxDiagrams.DataBind();
    }
    protected void DoContextMenuClick(object sender, RadMenuEventArgs e)
    {

    }
    protected DataTable GetRooms()
    {
        GuruParameterCollection parameters = new GuruParameterCollection();
        parameters.AddUserLoggedParams();
        DataTable rooms = HSMCommon.HSMBusiness.GetDataTable("spa_HSM_Room_GetDiagramByType", parameters);
        return rooms;
    }

}
